package com.quanyan.search.service;

import com.quanyan.api.APIResponse;
import com.quanyan.search.entity.request.ReqClubSearchInfo;
import com.quanyan.search.entity.response.ClubSearchResponse;
import com.quanyan.search.entity.response.SearchResponses;
import com.quanyan.search.entity.vo.ClubIndexInfo;

import java.util.List;

/**
 * ClubSearchService
 * 俱乐部搜索
 * @author Tu Chun
 * @date 2016/6/4
 */
public interface ClubSearchService {
    String getURL() ;

    void setURL(String URL) ;

    /**
     * 添加俱乐部索引
     * @param clubIndexInfo
     * @return
     */
    APIResponse insertDoc(ClubIndexInfo clubIndexInfo);

    /**
     * 添加多个俱乐部索引
     * @param clubIndexInfos
     * @return
     */
    APIResponse insertDocs(List<ClubIndexInfo> clubIndexInfos);

    /**
     * 根据id删除Document
     * @param club_id
     * @return
     */
    APIResponse deleteDocById(Integer club_id);



    /**
     * 删除多个Document
     * @param ids
     * @return
     */
    APIResponse deleteDocsByIds(List<Integer> ids);



    /**
     * 根据id搜索俱乐部信息
     * @param club_id
     * @return
     */
    APIResponse<ClubIndexInfo> searchClubInfo(Integer club_id);



    /**
     * 根据条件搜索
     * @param reqClubSearchInfo
     * @return
     */
    APIResponse<SearchResponses<List<ClubSearchResponse>>> searchClubInfoList(ReqClubSearchInfo reqClubSearchInfo);
    /**
     * 根据条件搜索
     * @param reqClubSearchInfo
     * @return
     */
    APIResponse<SearchResponses<List<ClubSearchResponse>>> searchClubInfoListNew(ReqClubSearchInfo reqClubSearchInfo);
}
